package cn.jeeweb.web.modules.sys.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.util.List;

/**
 * 包类
 */
public class UiPackageInfo implements java.io.Serializable{
    @TableId(value = "id", type = IdType.UUID)
    private String id;
    @TableField(value = "title")
    private String title;//标题
    @TableField(value = "localKey")
    private String localKey;//本地化文件关键字
    @TableField(value = "propertyName")
    private String propertyName;//当前记录相对于上一级的名称
    @TableField(value = "isEditable")
    private int isEditable;//当前记录是否可编辑
    @TableField(value = "module_id")
    private String moduleId;
    @TableField(value = "subPackageName")
    private String subPackageName;//当前包的子包名称，多个以|分隔
    @TableField(value = "displayType")
    private int displayType;//记录包显示方式:0表单 1表格 2图表
    @TableField(value = "displayIndex")
    private Integer displayIndex;//记录包显示顺序,0为表头,之后按顺序以标签页的方式显示
    @TableField(value = "iframeURL")
    private String iframeUrl;//内嵌页的网址
    @TableField(value = "context")
    private String context;

    @TableField(exist = false)
    private List<UiPackageInfo> items;
    @TableField(exist = false)
    private List<UiProperty> propertyInfos;
    @TableField(exist = false)
    private List<UiActionButton> actionButtons;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getLocalKey() {
        return localKey;
    }

    public void setLocalKey(String localKey) {
        this.localKey = localKey;
    }

    public String getPropertyName() {
        return propertyName;
    }

    public void setPropertyName(String propertyName) {
        this.propertyName = propertyName;
    }

    public int getIsEditable() {
        return isEditable;
    }

    public void setIsEditable(int isEditable) {
        this.isEditable = isEditable;
    }

    public String getModuleId() {
        return moduleId;
    }

    public void setModuleId(String moduleId) {
        this.moduleId = moduleId;
    }

    public String getSubPackageName() {
        return subPackageName;
    }

    public void setSubPackageName(String subPackageName) {
        this.subPackageName = subPackageName;
    }

    public int getDisplayType() {
        return displayType;
    }

    public void setDisplayType(int displayType) {
        this.displayType = displayType;
    }

    public Integer getDisplayIndex() {
        return displayIndex;
    }

    public void setDisplayIndex(Integer displayIndex) {
        this.displayIndex = displayIndex;
    }

    public List<UiPackageInfo> getItems() {
        return items;
    }

    public void setItems(List<UiPackageInfo> items) {
        this.items = items;
    }

    public List<UiProperty> getPropertyInfos() {
        return propertyInfos;
    }

    public void setPropertyInfos(List<UiProperty> propertyInfos) {
        this.propertyInfos = propertyInfos;
    }

    public List<UiActionButton> getActionButtons() {
        return actionButtons;
    }

    public void setActionButtons(List<UiActionButton> actionButtons) {
        this.actionButtons = actionButtons;
    }

    public String getIframeUrl() {
        return iframeUrl;
    }

    public void setIframeUrl(String iframeUrl) {
        this.iframeUrl = iframeUrl;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }
}
